import menuList from '../assets/file/superadminMenu';

export default function request(url,params) {
    const data = new listOptions();
    switch (url) {
        case '/menu/list':
            return data.getList();
        case '/menu/add':
            return data.addList(params);
        case '/menu/remove':
            return data.delList(params);
        case 'menu/update':

    }
}
class listOptions{
    getList(){
        let returnData={
            state:0,
            message:'success',
            data:menuList
        }
        return returnData;
    }
    addList(params){

    }
    delList(params){

    }
}
